package com.ugoodtech.mdcc.client;

import com.ugoodtech.mdcc.core.Constants;
import com.ugoodtech.mdcc.core.domain.User;
import com.ugoodtech.mdcc.core.service.WechatService;
import com.ugoodtech.mdcc.core.service.impl.WechatPushServiceImpl;


public class WeChatPush {


    public static void main(String[] args) {
        WeChatPush p = new WeChatPush();
        p.sendPush();
    }

    public void sendPush() {
        String firstData = "您好，在测试维修站进行的漆星服务项目已完成";
        User user = new User();
        user.setOpenId("omSAT1oYpSuaR8lELjWYQsyVk-Pg");
        WechatPushServiceImpl wechatPushService = new WechatPushServiceImpl();
        wechatPushService.pushWechatMessage(user, "Ujk2bjdBKx3vU1IjSH3OyD84rgF0Hz-oU2Ds564DW2I", Constants.WECHAT_PUSH_URL, firstData,
                "请登录漆星服务公众号对Ta的本次服务进行打分", "Blank", "2018-10-15 14:14:14", "", "", "");
    }

}
